Computer and Modernization ›› 2013, Vol. 1 ›› Issue (5): 10-15.doi: 10.3969/j.issn.1006-2475.2013.05.003

• 算法设计与分析 • Previous Articles     Next Articles

Top-k Shortest Path Query Algorithm Based on Tree Decomposition Structure

CHONG Hao-min1, CHEN He2   

  1. 1. Nanjing Metro Construction Co., Ltd., Nanjing 210017, China; 2.School of Computer Science and Engineering, Southeast University, Nanjing 211189, China
  • Received:2013-02-27 Revised:1900-01-01 Online:2013-05-28 Published:2013-05-28

Abstract: Based on the principle and property of tree decomposition, this paper converts a graph into a tree structure using a heuristic tree decomposition method. It preprocesses the decomposition tree and stores the index for further Top-k shortest path query. Through the solving of constraint path query in tree decomposition(Top-1 shortest path query) , Top-k algorithm computes the first topk shortest path one by one. It applies tree decomposition method into Yen algorithm. Though Top-k algorithm don’t optimize the worst case time complexity, it can recursively compute the shortest path efficiently through using the stored index. Proved by experiment, Top-k algorithm based on tree decomposition is faster than Yen algorithm, and the size of index is acceptable.

Key words: Top-k shortest path, tree decomposition, Yen algorithm

CLC Number: